﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucLocation.ascx.cs"
    Inherits="WSBulTasDesa.UserControls.ucLocation" %>
<table>
    <thead>
        <tr>
            <td colspan="2" style="font-weight: bold">
                <asp:Label ID="lblTitle" runat="server"></asp:Label>
            </td>
        </tr>
    </thead>
    <tbody style="border-style: ridge; border-width: thin">
        <tr>
            <td>
                Provincia:
            </td>
            <td>
                <asp:DropDownList ID="ddlProvinces" runat="server" SkinID="ddlSelect" />
            </td>
        </tr>
        <tr>
            <td>
                Departamento:
            </td>
            <td>
                <asp:DropDownList ID="ddlDepartments" runat="server" SkinID="ddlSelect" />
            </td>
        </tr>
        <tr>
            <td>
                Localidad:
            </td>
            <td>
                <asp:DropDownList ID="ddlLocalitys" runat="server" SkinID="ddlSelect" />
                <asp:RequiredFieldValidator ID="rfvLocality" runat="server" ControlToValidate="ddlLocalitys"
                    ErrorMessage="Seleccione Provincia, Departamento y Localidad" Display="None"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="vceLocality" TargetControlID="rfvLocality"
                    Width="200px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblDistance" runat="server"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDistance" runat="server" SkinID="txtDistance" MaxLength="4"></asp:TextBox>km
                <ajaxToolkit:FilteredTextBoxExtender ID="ftbHa" runat="server" TargetControlID="txtDistance"
                    FilterType="Custom, Numbers" />
                <asp:RequiredFieldValidator ID="rfvDistance" runat="server" ControlToValidate="txtDistance"
                    ErrorMessage="Ingrese distancia." Display="None"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="vceDistance" TargetControlID="rfvDistance"
                    Width="200px" />
            </td>
        </tr>
    </tbody>
</table>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDownP" runat="server" TargetControlID="ddlProvinces"
    Category="Province" PromptText="Seleccione pcia." ServicePath="~/UserControls/Service.asmx"
    ServiceMethod="GetProvinces" />
<ajaxToolkit:CascadingDropDown ID="CascadingDropDownD" runat="server" TargetControlID="ddlDepartments"
    ParentControlID="ddlProvinces" PromptText="Seleccione depto." LoadingText="Cargando"
    ServiceMethod="GetDepartments" ServicePath="~/UserControls/Service.asmx" Category="Department" />
<ajaxToolkit:CascadingDropDown ID="CascadingDropDownL" runat="server" TargetControlID="ddlLocalitys"
    ParentControlID="ddlDepartments" PromptText="Seleccione loc." LoadingText="Cargando"
    ServiceMethod="GetLocalitys" ServicePath="~/UserControls/Service.asmx" Category="Locality" />
